<?php

require_once('settings.inc.php');

try 
{
    $dbh = new PDO('mysql:host='.$dbhost.';dbname='.$database, $user, $password,
                        array(
                                PDO::ATTR_PERSISTENT => true,
                                PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"
                            )
                   );
} 
catch (PDOException $e) 
{
    print "Error!: " . $e->getMessage() . "<br/>";
    die();
}